package com.neusoft.neu24.nep.listener;


import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;

import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "bootTestTopic", consumerGroup = "boot-consumer-group-1")
public class RocketmqConsumerListener implements RocketMQListener<MessageExt> {
    //    抛异常拒收
    @Override
    public void onMessage(MessageExt messageExt) {
        System.out.println("接收到消息：" + messageExt);
    }
}
